package com.betterjr.modules.temhandler.dubboclient;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.betterjr.mapper.pagehelper.Page;
import com.betterjr.modules.temhandler.dubbo.interfaces.ITemDataService;
import com.betterjr.modules.temhandler.entity.TemData;

/**
 * 
 * @ClassName: TemDataDubboClientService 
 * @Description: 接口调用
 * @author xuyp
 * @date 2018年1月10日 下午3:44:50 
 *
 */
@Service
public class TemDataDubboClientService {

    @Reference(interfaceClass = ITemDataService.class)
    private ITemDataService temDataService;

    public List<TemData> queryTemData(String anClassUrl, String anBusinTableId, String anBusinStatus) {

        return temDataService.queryTemData(anClassUrl, anBusinTableId, anBusinStatus);
    }

    public TemData saveAuditTemData(Long anId, String anDescription, Map<String, Object> anMap) {
        return temDataService.saveAuditTemData(anId, anDescription, anMap);

    }

    public TemData saveDeleteTemData(Long anId, String anDescription) {
        return temDataService.saveDeleteTemData(anId, anDescription);
    }

    public TemData saveAddTemData(TemData anTemData) {
        return temDataService.saveAddTemData(anTemData);
    }

    public TemData findTemDataByid(Long id) {

        return temDataService.findTemDataByid(id);

    }

    public Page<TemData> queryTemDataPage(String anClassUrl, String anBusinStatus, Map<String, Object> anQueryMap,
            String anFlag, int anPageNum, int anPageSize) {

        return temDataService.queryTemData(anClassUrl, anBusinStatus, anQueryMap, anFlag, anPageNum, anPageSize);

    }

    public List<TemData> saveUpdateTemDataStatus(String anIds, String anBusinStatus) {

        return temDataService.saveUpdateTemDataStatus(anIds, anBusinStatus);
    }
}
